package com.matt.foundation.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2017/6/4
 * *******************************
 */
@Data
public class OrderEvent {

    @JsonProperty("dId")
    private Long distributorId;

    @JsonProperty("oId")
    private Long orderId;

    @JsonProperty("p")
    private Integer process;


    public static OrderEvent of(Long orderId, Long distributorId, Integer process){
        OrderEvent event = new OrderEvent();
        event.setOrderId(orderId);
        event.setDistributorId(distributorId);
        event.setProcess(process);
        return event;
    }
}
